import { defineStore } from 'pinia'

const useStore = defineStore('tabbar', {
    // arrow function recommended for full type inference
    state: () => ({
        // all these properties will have their type inferred automatically
        active: 0
    }),
    getters: {
        active: (state) => state.active
    },
    actions: {
        setActive(newValue: any) {
            this.active = newValue
        },
    }
})

export default useStore
